<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" id="name_label"><span style="color: red;">*</span>{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input  class="form-control"  type="text" value="{$row.name|htmlentities}" readonly>
        </div>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <span class="input-group-addon" >修改为</span>
                <input id="name" class="form-control form_value" name="row[name]" type="text" value="{$row.tmp_name}" >
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-4">
           <textarea class="form-control" id="name_submit_desc" name="row[name_submit_desc]" placeholder="请填写修改原因" data-rule="required(#name:filled)">{$row.tmp_name_submit_desc}</textarea>
        </div>
        <div class="col-xs-12 col-sm-4">
            <button type="button"  class="btn  single_submit btn-success " data-item_id="name">提交</button>
            <span class="text-danger">{:$row['tmp_name_status']== STATUS_SUBMIT?'已提交,等待管理员审核':'';}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" id="inspect_time_label"><span style="color: red;">*</span>{:__('Inspect_time')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control" type="text" value="{:$row.inspect_time?datetime($row.inspect_time,'Y-m-d'):''}" readonly>
        </div>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <span class="input-group-addon" >修改为</span>
                <input id="inspect_time" class="form-control datetimepicker form_value" name="row[inspect_time]" data-date-format="YYYY-MM-DD" type="text" value="{:$row.tmp_inspect_time?datetime($row.tmp_inspect_time,'Y-m-d'):''}" >
            </div>
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-4">
           <textarea class="form-control" id="inspect_time_submit_desc" name="row[inspect_time_submit_desc]" placeholder="请填写修改原因" data-rule="required(#inspect_time:filled)">{$row.tmp_inspect_time_submit_desc}</textarea>
        </div>
        <div class="col-xs-12 col-sm-4">
            <button type="button"  class="btn  single_submit btn-success " data-item_id="inspect_time">提交</button>
            <span class="text-danger">{:$row['tmp_inspect_time_status']== STATUS_SUBMIT?'已提交,等待管理员审核':'';}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" id="inspect_address_label"><span style="color: red;">*</span>{:__('Inspect_address')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control" type="text" value="{$row.inspect_address}" readonly>
        </div>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <span class="input-group-addon" >修改为</span>
                <input id="inspect_address" class="form-control form_value" name="row[inspect_address]"  type="text" value="{$row.tmp_inspect_address}" >
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-4">
           <textarea class="form-control" id="inspect_address_submit_desc" name="row[inspect_address_submit_desc]" placeholder="请填写修改原因" data-rule="required(#inspect_address:filled)">{$row.tmp_inspect_address_submit_desc}</textarea>
        </div>
        <div class="col-xs-12 col-sm-4">
            <button type="button"  class="btn  single_submit btn-success " data-item_id="inspect_address">提交</button>
            <span class="text-danger">{:$row['tmp_inspect_address_status']== STATUS_SUBMIT?'已提交,等待管理员审核':'';}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" id="leader_ids_label"><span style="color: red;">*</span>{:__('Leader_ids')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control" type="text" value="{$row.leader_names}" readonly>
        </div>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <span class="input-group-addon" >修改为</span>
                {:build_select('row[leader_ids][]',$leaders,$row['tmp_leader_ids'],['id'=>"leader_ids",'multiple'=>true,'class'=>'form-control selectpicker form_value'])}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-4">
           <textarea class="form-control" id="leader_ids_submit_desc" name="row[leader_ids_submit_desc]" placeholder="请填写修改原因">{$row.tmp_leader_ids_submit_desc}</textarea>
        </div>
        <div class="col-xs-12 col-sm-4">
            <button type="button"  class="btn  single_submit btn-success " data-item_id="leader_ids">提交</button>
            <span class="text-danger">{:$row['tmp_leader_ids_status']== STATUS_SUBMIT?'已提交,等待管理员审核':'';}</span>
        </div>
    </div>


     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" id="accompany_ids_label"><span style="color: red;">*</span>{:__('Accompany_name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control" type="text" value="{$row.accompany_name}" readonly>
        </div>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <span class="input-group-addon" >修改为</span>
                {:build_select('row[accompany_ids][]',$chargeDeps,$row['tmp_accompany_ids'],['id'=>"accompany_ids",'multiple'=>true,'class'=>'form-control selectpicker form_value'])}
            </div>
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" ></label>
        <div class="col-xs-12 col-sm-4">
           <textarea class="form-control" id="accompany_ids_submit_desc" name="row[accompany_ids_submit_desc]" placeholder="请填写修改原因">{$row.tmp_accompany_ids_submit_desc}</textarea>
        </div>
        <div class="col-xs-12 col-sm-4">
            <button type="button"  class="btn  single_submit btn-success " data-item_id="accompany_ids">提交</button>
            <span class="text-danger">{:$row['tmp_accompany_ids_status']== STATUS_SUBMIT?'已提交,等待管理员审核':'';}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" id="inspect_memo_label"><span style="color: red;">*</span>{:__('Inspect_memo')}:</label>
        <div class="col-xs-12 col-sm-4">
            <textarea class="form-control" readonly>{$row.inspect_memo}</textarea>
        </div>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <span class="input-group-addon" >修改为</span>
                <textarea id="inspect_memo" class="form-control form_value" name="row[inspect_memo]" >{$row.tmp_inspect_memo}</textarea>
            </div>
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-4">
           <textarea class="form-control" id="inspect_memo_submit_desc" name="row[inspect_memo_submit_desc]" placeholder="请填写修改原因">{$row.tmp_inspect_memo_submit_desc}</textarea>
        </div>
        <div class="col-xs-12 col-sm-4">
            <button type="button"  class="btn  single_submit btn-success " data-item_id="inspect_memo">提交</button>
            <span class="text-danger">{:$row['tmp_inspect_memo_status']== STATUS_SUBMIT?'已提交,等待管理员审核':'';}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" id="project_status_label"><span style="color: red;">*</span>项目状态:</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control" type="text" value="{$row.project_status_name}" readonly>
        </div>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <span class="input-group-addon" >修改为</span>
                {:build_select('row[tmp_project_status]',$Think.config.app.project_status,$row['tmp_project_status'],['id'=>"project_status",'class'=>'project_status form-control form_value','data-rule'=>'required'])}
            </div>
        </div>
    </div>
    <div class="form-group project_time" {if $row.tmp_project_status&&$row.tmp_project_status>1} style="display: block;" {/else} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2">项目时间:</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control" type="text" value="{:$row.project_time?datetime($row.project_time,'Y-m-d'):''}" readonly>
        </div>        
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <span class="input-group-addon">项目时间修改为</span>
                <input id="project_time" class="form-control datetimepicker" name="row[project_time]" data-date-format="YYYY-MM-DD" type="text" value="{:$row.tmp_project_time?datetime($row.tmp_project_time,'Y-m-d'):''}" >
            </div>
        </div>
    </div>    


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-4">
           <textarea class="form-control" id="project_status_submit_desc" name="row[project_status_submit_desc]" placeholder="请填写修改原因">{$row.tmp_project_status_submit_desc}</textarea>
        </div>
        <div class="col-xs-12 col-sm-4">
            <button type="button"  class="btn  single_submit btn-success " data-item_id="project_status">提交</button>
            <span class="text-danger">{:$row['tmp_project_status_status']== STATUS_SUBMIT?'已提交,等待管理员审核':'';}</span>
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-success all_submit">{:__('全部提交')}</button>
            <!-- <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button> -->
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
